package net.sky.oa.service.ioffice.impl;

import java.util.List;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

import net.sky.oa.model.OffTaskUser;
import net.sky.oa.dao.ioffice.OffTaskUserDao;
import net.sky.oa.service.ioffice.OffTaskUserService;

@Service
@Transactional
public class OffTaskUserServiceImpl extends BaseServiceImpl<OffTaskUser> implements OffTaskUserService {
	
	private OffTaskUserDao taskUserDao;
	
	@Resource
	public void setTaskUserDao(OffTaskUserDao taskUserDao) {
		super.setDao(taskUserDao);
		this.taskUserDao = taskUserDao;
	}


	public List<OffTaskUser> findByUserIdorSummId(Long userId, Long taskId) {
		
		return this.taskUserDao.findByUserIdorSummId(userId, taskId);
	}
}
